﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RapChieuPhim.DTO;
using RapChieuPhim.DAO;
using System.Collections;

namespace RapChieuPhim.BUS
{
    class CaChieuBUS
    {
        public static CaChieuDTO GetByID(int id)
        {
            CaChieuDAO cachieuDAO = new CaChieuDAO();
            return cachieuDAO.GetByID(id);
        }

        public static IList GetAll()
        {
            CaChieuDAO cachieuDAO = new CaChieuDAO();
            return cachieuDAO.GetAll();
        }

        public static void Insert(CaChieuDTO CaChieu)
        {
            CaChieuDAO cachieuDAO = new CaChieuDAO();
            cachieuDAO.Insert(CaChieu);
        }

        public static void Update(CaChieuDTO CaChieu)
        {
            CaChieuDAO cachieuDAO = new CaChieuDAO();
            cachieuDAO.Update(CaChieu);
        }

        public static void Delete(int id)
        {
            CaChieuDAO cachieuDAO = new CaChieuDAO();
            cachieuDAO.Delete(id);
        }
    }
}
